package com.foreverwin.mes.production.service;


import com.baomidou.mybatisplus.service.IService;
import com.foreverwin.mes.meapi.model.Resrce;
import com.foreverwin.mes.production.model.StationResource;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author syngna
 * @since 2018-12-03
 */
public interface StationResourceService extends IService<StationResource> {

    /**
     * 根据资源查询岗位
     *
     * @return
     */
    List<StationResource> getStationListByResource(String sie, String resource);

    /**
     * 查询岗位下的资源清单
     *
     * @param stationBo
     * @return
     */
    List<Resrce> getResourceList(String stationBo);

    /**
     * 删除岗位下设备
     *
     * @param stationBo
     * @return
     */
    int deleteResourceByStation(String stationBo);

    /**
     * 批量新增分配的设备
     *
     * @param list
     * @return
     */
    int addResourceForStation(List<StationResource> list);
}